/**
 * Copyright (c) Martijn Grootens (m.e.grootens@student.utwente.nl), 
 * University of Twente.
 * Created july 2012.
 *
 * This file is part of dbcleaner.
 * 
 * dbcleaner is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * dbcleaner is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with dbcleaner.  If not, see <http://www.gnu.org/licenses/>.
 */

package dbcleaner.core.dbentries;

import dbcleaner.core.bibfields.*;

/**
 * Representation of a BibTeX reference of class "incollection".
 */
public class InCollection extends Entry {
    
    // class name
    public static final String ENTRY_CLASS = "incollection";
    
    // obligatory fields
    private static final String[] fields = {"author", "title", "booktitle", "publisher", "year"};
    
    /**
     * Constructor of a new and empty InCollection.
     * (This actually is duplicate code.)
     */
    public InCollection () {
        
        // Add the obligatory BibFields, all set to EMPTY.
        for (String ff : fields) {
            add_oblig_field(new BibField(ff));
        }
        
    }
    
    /**
     * Get the class name of this BibTeX reference.
     * (This is duplicate code which overrides super; 
     * it would be better to only override the variable.)
     */
    public String get_class_name () {
        return ENTRY_CLASS;
    }
    
}